package service;

import pojo.Student;

import java.util.List;

public interface StudentService {

    // 定义行为  crud
    // 查询用户
    List<Student> findAll( int offset, int pageSize);


    // 查询用户总数
    int count(Student student);


    int deleteStudentById(int sid);

    int addStudent(Student student);

    Student findStudentById(int sid);

    int updateStudent(Student student);

    List<Student> findAll2(Student student, int offset, int pageSize);

    List<Student> findStudentByName(String name);

    List<Student> findStudentByMajor(String major);

    List<Student> findStudentByGender(String gender);

    List<Student> findStudentByAge(Integer age);

    List<Student> findStudentByStatus(String status);

    List<Student> findStudentByNum(String studentNum);
}
